from cleanfid import fid

# model_name="inception_v3" or "clip_vit_b_32"
score = fid.compute_fid(
    "/root/data/outputs",
    "/root/data/truths",
    mode="clean",
    model_name="clip_vit_b_32",
    device="cuda:0",
    num_workers=0  # 若多进程报错，设为 0
)
print(f"FID Score: {score}")